{"ast":null,"code":"import { resetComponent } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nfunction genSizeStyle(token, suffix) {\n  const {\n    componentCls,\n    inputPaddingHorizontalBase,\n    borderRadius\n  } = token;\n  const selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;\n  const selectionItemPadding = Math.ceil(token.fontSize * 1.25);\n  const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n  return {\n    [`${componentCls}-single${suffixCls}`]: {\n      fontSize: token.fontSize,\n      // ========================= Selector =========================\n      [`${componentCls}-selector`]: Object.assign(Object.assign({}, resetComponent(token)), {\n        display: 'flex',\n        borderRadius,\n        [`${componentCls}-selection-search`]: {\n          position: 'absolute',\n          top: 0,\n          insetInlineStart: inputPaddingHorizontalBase,\n          insetInlineEnd: inputPaddingHorizontalBase,\n          bottom: 0,\n          '&-input': {\n            width: '100%'\n          }\n        },\n        [`\n          ${componentCls}-selection-item,\n          ${componentCls}-selection-placeholder\n        `]: {\n          padding: 0,\n          lineHeight: `${selectHeightWithoutBorder}px`,\n          transition: `all ${token.motionDurationSlow}`,\n          // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:\n          '@supports (-moz-appearance: meterbar)': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        },\n        [`${componentCls}-selection-item`]: {\n          position: 'relative',\n          userSelect: 'none'\n        },\n        [`${componentCls}-selection-placeholder`]: {\n          transition: 'none',\n          pointerEvents: 'none'\n        },\n        // For common baseline align\n        [['&:after', /* For '' value baseline align */\n        `${componentCls}-selection-item:after`, /* For undefined value baseline align */\n        `${componentCls}-selection-placeholder:after`].join(',')]: {\n          display: 'inline-block',\n          width: 0,\n          visibility: 'hidden',\n          content: '\"\\\\a0\"'\n        }\n      }),\n      [`\n        &${componentCls}-show-arrow ${componentCls}-selection-item,\n        &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n      `]: {\n        paddingInlineEnd: selectionItemPadding\n      },\n      // Opacity selection if open\n      [`&${componentCls}-open ${componentCls}-selection-item`]: {\n        color: token.colorTextPlaceholder\n      },\n      // ========================== Input ==========================\n      // We only change the style of non-customize input which is only support by `combobox` mode.\n      // Not customize\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selector`]: {\n          width: '100%',\n          height: token.controlHeight,\n          padding: `0 ${inputPaddingHorizontalBase}px`,\n          [`${componentCls}-selection-search-input`]: {\n            height: selectHeightWithoutBorder\n          },\n          '&:after': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        }\n      },\n      [`&${componentCls}-customize-input`]: {\n        [`${componentCls}-selector`]: {\n          '&:after': {\n            display: 'none'\n          },\n          [`${componentCls}-selection-search`]: {\n            position: 'static',\n            width: '100%'\n          },\n          [`${componentCls}-selection-placeholder`]: {\n            position: 'absolute',\n            insetInlineStart: 0,\n            insetInlineEnd: 0,\n            padding: `0 ${inputPaddingHorizontalBase}px`,\n            '&:after': {\n              display: 'none'\n            }\n          }\n        }\n      }\n    }\n  };\n}\nexport default function genSingleStyle(token) {\n  const {\n    componentCls\n  } = token;\n  const inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;\n  return [genSizeStyle(token),\n  // ======================== Small ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    borderRadius: token.borderRadiusSM\n  }), 'sm'),\n  // padding\n  {\n    [`${componentCls}-single${componentCls}-sm`]: {\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selection-search`]: {\n          insetInlineStart: inputPaddingHorizontalSM,\n          insetInlineEnd: inputPaddingHorizontalSM\n        },\n        [`${componentCls}-selector`]: {\n          padding: `0 ${inputPaddingHorizontalSM}px`\n        },\n        // With arrow should provides `padding-right` to show the arrow\n        [`&${componentCls}-show-arrow ${componentCls}-selection-search`]: {\n          insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5\n        },\n        [`\n            &${componentCls}-show-arrow ${componentCls}-selection-item,\n            &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n          `]: {\n          paddingInlineEnd: token.fontSize * 1.5\n        }\n      }\n    }\n  },\n  // ======================== Large ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  }), 'lg')];\n}","map":{"version":3,"names":["resetComponent","mergeToken","genSizeStyle","token","suffix","componentCls","inputPaddingHorizontalBase","borderRadius","selectHeightWithoutBorder","controlHeight","lineWidth","selectionItemPadding","Math","ceil","fontSize","suffixCls","Object","assign","display","position","top","insetInlineStart","insetInlineEnd","bottom","width","padding","lineHeight","transition","motionDurationSlow","userSelect","pointerEvents","join","visibility","content","paddingInlineEnd","color","colorTextPlaceholder","height","genSingleStyle","inputPaddingHorizontalSM","controlPaddingHorizontalSM","controlHeightSM","borderRadiusSM","controlHeightLG","fontSizeLG","borderRadiusLG"],"sources":["/data/messenger.client/node_modules/antd/es/select/style/single.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nfunction genSizeStyle(token, suffix) {\n  const {\n    componentCls,\n    inputPaddingHorizontalBase,\n    borderRadius\n  } = token;\n  const selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;\n  const selectionItemPadding = Math.ceil(token.fontSize * 1.25);\n  const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n  return {\n    [`${componentCls}-single${suffixCls}`]: {\n      fontSize: token.fontSize,\n      // ========================= Selector =========================\n      [`${componentCls}-selector`]: Object.assign(Object.assign({}, resetComponent(token)), {\n        display: 'flex',\n        borderRadius,\n        [`${componentCls}-selection-search`]: {\n          position: 'absolute',\n          top: 0,\n          insetInlineStart: inputPaddingHorizontalBase,\n          insetInlineEnd: inputPaddingHorizontalBase,\n          bottom: 0,\n          '&-input': {\n            width: '100%'\n          }\n        },\n        [`\n          ${componentCls}-selection-item,\n          ${componentCls}-selection-placeholder\n        `]: {\n          padding: 0,\n          lineHeight: `${selectHeightWithoutBorder}px`,\n          transition: `all ${token.motionDurationSlow}`,\n          // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:\n          '@supports (-moz-appearance: meterbar)': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        },\n        [`${componentCls}-selection-item`]: {\n          position: 'relative',\n          userSelect: 'none'\n        },\n        [`${componentCls}-selection-placeholder`]: {\n          transition: 'none',\n          pointerEvents: 'none'\n        },\n        // For common baseline align\n        [['&:after', /* For '' value baseline align */\n        `${componentCls}-selection-item:after`, /* For undefined value baseline align */\n        `${componentCls}-selection-placeholder:after`].join(',')]: {\n          display: 'inline-block',\n          width: 0,\n          visibility: 'hidden',\n          content: '\"\\\\a0\"'\n        }\n      }),\n      [`\n        &${componentCls}-show-arrow ${componentCls}-selection-item,\n        &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n      `]: {\n        paddingInlineEnd: selectionItemPadding\n      },\n      // Opacity selection if open\n      [`&${componentCls}-open ${componentCls}-selection-item`]: {\n        color: token.colorTextPlaceholder\n      },\n      // ========================== Input ==========================\n      // We only change the style of non-customize input which is only support by `combobox` mode.\n      // Not customize\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selector`]: {\n          width: '100%',\n          height: token.controlHeight,\n          padding: `0 ${inputPaddingHorizontalBase}px`,\n          [`${componentCls}-selection-search-input`]: {\n            height: selectHeightWithoutBorder\n          },\n          '&:after': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        }\n      },\n      [`&${componentCls}-customize-input`]: {\n        [`${componentCls}-selector`]: {\n          '&:after': {\n            display: 'none'\n          },\n          [`${componentCls}-selection-search`]: {\n            position: 'static',\n            width: '100%'\n          },\n          [`${componentCls}-selection-placeholder`]: {\n            position: 'absolute',\n            insetInlineStart: 0,\n            insetInlineEnd: 0,\n            padding: `0 ${inputPaddingHorizontalBase}px`,\n            '&:after': {\n              display: 'none'\n            }\n          }\n        }\n      }\n    }\n  };\n}\nexport default function genSingleStyle(token) {\n  const {\n    componentCls\n  } = token;\n  const inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;\n  return [genSizeStyle(token),\n  // ======================== Small ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    borderRadius: token.borderRadiusSM\n  }), 'sm'),\n  // padding\n  {\n    [`${componentCls}-single${componentCls}-sm`]: {\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selection-search`]: {\n          insetInlineStart: inputPaddingHorizontalSM,\n          insetInlineEnd: inputPaddingHorizontalSM\n        },\n        [`${componentCls}-selector`]: {\n          padding: `0 ${inputPaddingHorizontalSM}px`\n        },\n        // With arrow should provides `padding-right` to show the arrow\n        [`&${componentCls}-show-arrow ${componentCls}-selection-search`]: {\n          insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5\n        },\n        [`\n            &${componentCls}-show-arrow ${componentCls}-selection-item,\n            &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n          `]: {\n          paddingInlineEnd: token.fontSize * 1.5\n        }\n      }\n    }\n  },\n  // ======================== Large ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  }), 'lg')];\n}"],"mappings":"AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,UAAU,QAAQ,sBAAsB;AACjD,SAASC,YAAY,CAACC,KAAK,EAAEC,MAAM,EAAE;EACnC,MAAM;IACJC,YAAY;IACZC,0BAA0B;IAC1BC;EACF,CAAC,GAAGJ,KAAK;EACT,MAAMK,yBAAyB,GAAGL,KAAK,CAACM,aAAa,GAAGN,KAAK,CAACO,SAAS,GAAG,CAAC;EAC3E,MAAMC,oBAAoB,GAAGC,IAAI,CAACC,IAAI,CAACV,KAAK,CAACW,QAAQ,GAAG,IAAI,CAAC;EAC7D,MAAMC,SAAS,GAAGX,MAAM,GAAI,GAAEC,YAAa,IAAGD,MAAO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